﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using T.Common.Domain.Common;

namespace RedDragon.Common.Domain.Process
{
    /// <summary>
    /// 工艺路线工序
    /// </summary>
    public class ProcessLineOperations : BaseEntity
    {
        /// <summary>
        /// 序号
        /// </summary>        
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//IsPrimaryKey 主键 IsIdentity 自增
        public int OperationId { get; set; }

        /// <summary>
        /// 顺序
        /// </summary>
        public int OrderNum { get; set; }

        /// <summary>
        /// 工艺编码(外键)
        /// </summary>
        [SugarColumn(ColumnDataType = "NVarchar(100)")]//设置长度
        public string ProcessRouteNo { get; set; }

        /// <summary>
        /// 工序(外键)
        /// </summary>
        public int ProcessId { get; set; }

        /// <summary>
        /// 前置期
        /// </summary>
        public decimal LeadTime { get; set; }

        /// <summary>
        /// 工价
        /// </summary>
        public decimal LabourPrice { get; set; }

        /// <summary>
        /// 废扣工价
        /// </summary>
        public decimal LostButton { get; set; }

        /// <summary>
        /// 摘要
        /// </summary>
        [SugarColumn(ColumnDataType = "NVarchar(100)")]//设置长度
        public string Abstract { get; set; }

        /// <summary>
        /// 状态 1-有效 2-无效
        /// </summary>
        public int OperationStatus { get; set; }
    }
}
